package com.hanggold;

import java.net.SocketTimeoutException;

/**
 * @author <a href="mailto:sunmch@163.com">smc</a>
 * @date 2019-07-19 13:21
 * @since
 **/
public class Lazy {

    private  static boolean initialized = false;


    static {

        Thread t = new Thread(()-> {
            initialized = true;

        });

        t.start();

        try {
            t.join();
        }catch (Exception ex){
            throw new RuntimeException();
        }

    }


    public static void main(String[] args) {

        System.out.println(initialized);

    }


}
